package com.my.jli.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.util.Date;

/**
 * @ClassName ExerciseAndStudent
 * @Description 习题与学校关系类，主要用于记录学生完成习题的信息
 * @Author MaYu
 * @Date 2022/4/19 20:45
 * @Version 1.0
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@Entity(name = "tb_exercise_student")
public class ExerciseAndStudent {

    //id
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;
    //完成日期
    private Date date;
    //习题id
    private Integer eid;
    //学生id
    private Integer sid;
}
